﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace Windvoice.Authorize
{
    public partial class User : ActiveRecordBase<User>
    {
        public static User[] GetList(int pageIndex, int pageSize, out int recordCount)
        {
            recordCount = FindAll().Count();
            return FindAll().Skip((pageIndex - 1) * pageSize).Take(pageSize).ToArray();
        }
    }
}
